/*
 * Class2B.h
 *
 *  Created on: 2015年7月17日
 *      Author: Administrator
 */

#ifndef BCCH_CLASS2B_H_
#define BCCH_CLASS2B_H_
#include "Class2.h"
//184 bits.

//<Header: bitstring (6)> – 6 bits
//<Class Type 2bit>-10
//<Segment type 4bit>-0001
//struct ST2B_Header{
//	unsigned char classType:2;
//	unsigned char segType:4;
//};

struct BCCH_NEIGHBOUR_LIST2{
	unsigned short ARFCN:11 ;
	//<SA_BCCH_STN 5bit>
	unsigned char SA_BCCH_STN:5;
	//<RELATIVE_FRAME_OFFSET 3bit> – 相对于中心SB的帧号偏移
	unsigned char RELATIVE_FRAME_OFFSET:3 ;
};




//namespace BCCH {

class Class2B :public Class2{
public:
	Class2B();
	virtual ~Class2B();
	//	ST2B_Header header;
	//	<BCCH NEIGHBOUR LIST2> – 57 bits ，剩下3个临近SB的BCCH信息
	BCCH_NEIGHBOUR_LIST2 mBCCHNeiList2[3];
	//	<Spare: bitstring(121)> – 121 bits
	unsigned char spare[16];
};

//} /* namespace bcch */

#endif /* BCCH_CLASS2B_H_ */
